package com.cq.hd.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: 返回类型枚举类
 * @author: mYunYu
 * @date: 2021/7/7 15:44
 * @version: v1.0
 */
@AllArgsConstructor
public enum ResponseEnums {

    UNAUTHORIZED(401, "用户未授权", "用户未授权"),
    NOT_FOUND(404, "Not Found", "Not Found"),
    SUCCESS(200, "成功", "成功"),
    ERROR(500, "网络繁忙请稍后再试...", "异常"),
    USER_NOT_FOUND(10000, "用户不存在或被封禁，请联系管理员", "用户不存在或被封禁，请联系管理员"),
    USER_ACCESS_DENIED(10001, "登录过期，请重新登录", "登录过期，请重新登录"),
    USER_PWD_FAILED(10004, "用户名或密码错误", "用户名或密码错误"),
    BUSINESS_ACCESS_DENIED(10005, "请先升级成为商家", "请先升级成为商家"),
    RECHARGE_SUBSIDY_AMT(10006, "请先充值补贴金", "请先充值补贴金"),
    USER_REGISTER_FAILED(10007, "用户注册失败", "用户注册失败"),
    BUSINESS_INVITATION_URL_FAILED(10012, "链接已失效", "链接已失效"),
    BINDED_BUSINESS(10013, "已绑定商家", "已绑定商家"),
    ACTIVE_DOWN(10014, "活动已下架", "活动已下架"),

    ORDER_HANDLE(10015, "订单已处理，请刷新", "订单已处理，请刷新"),
    ORDER_ACTIVE_END(10016, "活动已结束，请刷新", "活动已结束，请刷新"),
    ORDER_TIME_OUT(10017, "订单超时，请重新下单", "订单超时，请重新下单"),
    ORDER_PAYED(10018, "订单已支付，请刷新", "订单已支付，请刷新"),
    MICRO_SERVICE_UNAVAILABLE(40001, "微服务不可用，请稍后再试", "微服务不可用，请稍后再试");

    @Getter
    private final int code;

    @Getter
    private final String message;

    @Getter
    private final String description;

}
